package com.smartrobot.smartrobot.circle;

/**
 * Created by Administrator on 2014/12/24.
 */
public class commonData {



    public static boolean FRIEND_LIST_CHANGE = false;

    public final static String CAN_NOT_CONNECT_SERVER = "无法连接服务器";
    public final static int CAN_NOT_CONNECT_SERVER_CODE = -1;


    //获取好友列表
    public final static int GET_FRIEND_LIST_SUCCESS_CODE = 1;//获取好友列表的成功代码
    public final  static int GET_FRIEND_LIST_FAIL_CODE = 0;//获取好友列表失败的代码
    public final  static String GET_FRIEND_LIST_FAIL = "获取好友列表失败";

    //获取圈子详情
    public final static int GET_CIRCLE_DETAIL_SUCCESS_CODE = 2 ; //获取详情成功
    public final  static int GET_CIRCLE_DETAIL_FAIL_CODE = -2; //获取详情失败
    public final  static String GET_CIRCLE_DETAIL_FAIL = "获取圈子详情失败";
    public final  static String USER_DO_NOT_JOIN_CIRCLE = "您没有加入社交圈";



    //查找或者添加朋友（社交圈）
    public final static  int SEARCH_FRIEND_SUCCESS_CODE = 4;
    public final static  int SEARCH_FRIEND_FAIL_CODE = -4;
    public final static  String SEARCH_FRIEND_FAIL = "查找失败";

    public final static  int ADD_FRIEND_SUCCESS_CODE =6;   //添加好友成功
    public final static  String ADD_FRIEND_SUCCESS ="添加好友成功";   //添加好友成功

    public final static  int ADD_CIRCLE_SUCCESS_CODE =8;   //加入社交圈成功
    public final static  String  ADD_CIRCLE_SUCCESS = "加入社交圈成功";

    public final static  int INVITE_ADD_CIRCLE_SUCCESS_CODE =10;   //邀请加入社交圈成功
    public final static  String INVITE_ADD_CIRCLE_SUCCESS ="邀请对方加入社交圈成功";   //


    public final  static int USER_CIRCLE_EXIST_CODE = -8;
    public final  static String USER_CIRCLE_EXIST = "用户已经存在社交圈";

    public final static int USER_NOT_CUSTOMER_CODE = -12;
    public final static String USER_NOT_CUSTOMER= "当期用户不能加入社交圈";

    public final static int HAVE_BEEN_FRIEND_RELAX_CODE = -14;
    public final static String HAVE_BEEN_FRIEND_RELAX ="已经是好友关系，不能重复添加";


    public final static  int USER_ADD_FRIEND_OR_CIRCLE_OTHER_ERROR_CODE = -20;//用户添加朋友或者加入社交圈其他错误



    //发起添加好友请求的
    public final static int ADD_FRIEND_REQUEST_SUCCESS_CODE =16;
    public final static String ADD_FRIEND_REQUEST_SUCCESS ="操作成功";

    public final static int ADD_FRIEND_REQUEST_FAILED_CODE =-16;
    public final static String ADD_FRIEND_REQUEST_FAILED ="操作失败";






    //公用
    public final static int DATA_ERROR_CODE = -100;//数据异常，一般是是前端解析数据错误
    public final static String DATA_ERROR = "数据异常";


    public final static String DATA_NORMAL = "1";//数据正确

    public final static  int PARAM_ERROR_CODE = -200;
    public final  static  String PARAM_ERROR = "连接服务器失败";

    public final static int SERVER_ERROR_CODE = -300;
    public final static String SERVER_ERROR = "服务器异常";
    //    public final static String DATA_UN_NORMAL = "0";

    public final static int USE_NOT_LOGIN_CODE = -22;//用户未登录

    public final static String USER_NOT_LOGIN = "用户未登录";

    public final static int USER_NO_EXIST_CODE = -24; //用户不存在
    public final static String USER_NO_EXIST = "不存在该用户";


    public final static int SHOW_TIP_CODE = -400;


    public final static int SEARCH_WITHOUT_LOGIN = -101;    //未登录：查找好友
    public final static int ADD_FRIEND_OR_CIRCLE_WITHOUT_LOGIN = -102;      //未登录：添加朋友或者加入社交圈
    public final  static int ADD_FRIEND_WITHOUT_LOGIN = -103;    //未登录：添加朋友
    public final static int  ADD_CIRCLE_WITHOUT_LOGIN = -104;    //未登录：加入社交圈
    public final static int GET_FRIEND_LIST_WITHOUT_LOGIN = -201; //未登录：获取好友列表
    public final static int GET_CIRCLE_DETAIL_WITHOUT_LOGIN = -202;//未登录：获取详情
    public  final static int ADD_FRIEND_REQUEST_WITHOUT_LOGIN = -303;//未登录：发起添加好友的请求


    public final static int SHOW_FRIEND_TIP_NUM = 1001;

}
